package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbCasekw entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_CASEKW", schema = "dbo", catalog = "AGDB")
public class TbCasekw implements java.io.Serializable {

	// Fields

	private String CKwid;
	private TbClassiccase tbClassiccase;
	private String CKw;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbCasekw() {
	}

	/** minimal constructor */
	public TbCasekw(String CKwid, TbClassiccase tbClassiccase, String CKw) {
		this.CKwid = CKwid;
		this.tbClassiccase = tbClassiccase;
		this.CKw = CKw;
	}

	/** full constructor */
	public TbCasekw(String CKwid, TbClassiccase tbClassiccase, String CKw,
			String a, String b, String c) {
		this.CKwid = CKwid;
		this.tbClassiccase = tbClassiccase;
		this.CKw = CKw;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "C_KWID", unique = true, nullable = false, length = 14)
	public String getCKwid() {
		return this.CKwid;
	}

	public void setCKwid(String CKwid) {
		this.CKwid = CKwid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CC_ID", nullable = false)
	public TbClassiccase getTbClassiccase() {
		return this.tbClassiccase;
	}

	public void setTbClassiccase(TbClassiccase tbClassiccase) {
		this.tbClassiccase = tbClassiccase;
	}

	@Column(name = "C_KW", nullable = false, length = 500)
	public String getCKw() {
		return this.CKw;
	}

	public void setCKw(String CKw) {
		this.CKw = CKw;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}